using System.Collections.Generic;
using System.Linq;

namespace Rogan.Utility.Extensions
{
	public static class ArrayExtension
	{
		public static bool In<T>(this T t, IEnumerable<T> enumerable)
		{
			return enumerable.Contains(t);
		}
		public static bool In(this string str, params string[] args)
		{
		    return args.Any(text => text.Equals(str));
		}
	}
}
